package com.xbq.exceleditor.ui

import android.os.Bundle
import com.gyf.immersionbar.ktx.immersionBar
import com.xbq.exceleditor.R
import com.xbq.exceleditor.databinding.ActivityShortcutKeyBinding
import com.xbq.xbqsdk.component.activity.VBActivity
import com.xbq.xbqsdk.util.click.onDebouncedClick
import dagger.hilt.android.AndroidEntryPoint

/**
 * Author: liaohaiping
 * Time: 2020-10-30
 * Description: 快捷键
 */
@AndroidEntryPoint
class ShortcutKeyActivity : VBActivity<ActivityShortcutKeyBinding>() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding.adview.init("shortcutkey",this)
        immersionBar {
            titleBar(R.id.statusbar)
            statusBarDarkFont(true)
        }
        binding.btnBack.onDebouncedClick { finish() }
        binding.webview.settings.let{
            it.javaScriptEnabled=true
        }
        binding.webview.loadUrl("file:////android_asset/shortcutkey.html")
//        binding.webview.loadUrl("https://mp.weixin.qq.com/s/I_LWCW9KkyAmkSkBqbm5_A")
//        binding.webview.loadUrl("https://www.excelhome.net/436.html")
    }

}